// 1 为输入框input
// 2 为下拉选择select  21 多选下拉框
// 3 为日期选择框  31 日期范围
// 4 为多行文本输入textarea
export const allFields = [
  { fieldName: 'lineName', fieldTxt: '线路名称', placeholder: '请输入线路名称', UiType: 1, must: true },
  { fieldName: 'lineType', fieldTxt: '线路类型', placeholder: '请选择线路类型', UiType: 2, must: true },
  { fieldName: 'unitName', fieldTxt: '隶属单位名称', placeholder: '请输入隶属单位名称', UiType: 1, must: true },
  { fieldName: 'unitAddress', fieldTxt: '隶属单位详细地址', placeholder: '请输入隶属单位详细地址', UiType: 4, must: true },
  { fieldName: 'unitContact', fieldTxt: '隶属单位联系方式', placeholder: '请输入隶属单位联系方式', UiType: 1, must: true },
  { fieldName: 'unitChargeName', fieldTxt: '隶属单位负责人姓名', placeholder: '请输入隶属单位负责人姓名', UiType: 1, must: true },
  { fieldName: 'unitChargeContact', fieldTxt: '隶属单位负责人联系方式', placeholder: '请输入隶属单位负责人联系方式', UiType: 1, must: true },
  { fieldName: 'administerUnitName', fieldTxt: '管辖单位名称', placeholder: '请输入管辖单位名称', UiType: 1, must: true },
  { fieldName: 'administerUnitAddress', fieldTxt: '管辖单位详细地址', placeholder: '请输入管辖单位详细地址', UiType: 4, must: true },
  { fieldName: 'administerUnitContact', fieldTxt: '管辖单位联系方式', placeholder: '请输入管辖单位联系方式', UiType: 1, must: true },
  { fieldName: 'securityName', fieldTxt: '分管治保负责人姓名', placeholder: '请输入分管治保负责人姓名', UiType: 1, must: true },
  { fieldName: 'securityContact', fieldTxt: '分管治保负责人联系方式', placeholder: '请输入分管治保负责人联系方式', UiType: 1, must: true },
  { fieldName: 'dangerLevel', fieldTxt: '治安隐患等级', placeholder: '请选择治安隐患等级', UiType: 2, must: true },
  { fieldName: 'dangerSituation', fieldTxt: '治安隐患情况', placeholder: '请输入治安隐患情况', UiType: 4 }
]

export const optList = {
  lineType: [
    { code: '01', name: '铁路' },
    { code: '02', name: '公路' },
    { code: '03', name: '水路' },
    { code: '04', name: '输油气管道' },
    { code: '05', name: '电力设施' },
    { code: '06', name: '电信设施' },
    { code: '07', name: '广播电视设施' },
    { code: '99', name: '其他' }
  ],
  dangerLevel: [
    { code: '01', name: '高' },
    { code: '02', name: '中' },
    { code: '03', name: '低' }
  ]
}
